// ~~~~~~~~~~~~~~~~~~~~~~ Optlam.js ~~~~~~~~~~~~~~~~~~~~~~
// An optimal λ-calculus normalizer written in JavaScript.
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Optlam.js is a simple, optimal (in Levy's sense) λ-calculus evaluator using
// interaction nets. It is, currently, as far as I know, the fastest
// implementation of functions in the world. It uses Lamping's Abstract
// Algorithm - that is, the so called (and problematic) "oracle" is avoided
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* For more information, please refer to <https://unlicense.org> | |
*/ | |
//Regular text | |
#define BLK "\e[0;30m" | |
#define RED "\e[0;31m" | |
#define GRN "\e[0;32m" |
I'm trying to follow this guide to install NixOS
using Btrfs
, LUKS
and LVM
. The main usage of this page for me will be remembering what I did! My laptop is ASUS ROG GL553VD
.
Just downloaded Plasma Desktop, 64bit and create a bootable Flash Drive. Then boot up to NixOS Live CD. Using gparted to create two partitions, One 200MB vfat EFI partittion and the rest of SSD drive will be an encrypted partition.
DISK=/dev/nvme0n1
Данный гист содержит основную информацию, которую нужно знать о Java Standart Edition.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; Pitch Black Theme preset by AveYo, AccentPalette idea by /u/Egg-Tricky | |
; for Ctrl+Alt+Del, Logon, Taskbar, Start Menu, Action Center (10 & 11) | |
; revised 2022-06-16: show active taskbar button in accent color | |
[-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent] | |
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent] | |
"AccentColorMenu"=dword:aa000000 ; Window borders and titlebar | |
"StartColorMenu"=dword:aa202020 ; Modals in UWP ex. Apply new refresh rate in 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void PurgesCAD() | |
{ | |
Document doc = Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument; | |
Database db = doc.Database; | |
using (Transaction Tx = db.TransactionManager.StartTransaction()) | |
{ | |
BlockTable table = Tx.GetObject(db.BlockTableId, | |
OpenMode.ForRead) as BlockTable; | |
ObjectIdCollection blockIds = new ObjectIdCollection(); | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node | |
var debug: bool = OS.has_feature("debug") | |
@onready var panel: Panel = Panel.new() | |
@onready var canvas_layer: CanvasLayer = CanvasLayer.new() | |
@onready var rich_text_label: RichTextLabel = RichTextLabel.new() | |
# @onready var theme: Theme = load("res://SurvivalScape.theme") # Your custom theme file | |
func _ready() -> void: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget https://download.mikrotik.com/routeros/7.13.3/chr-7.13.3.img.zip -O chr.img.zip && \ | |
gunzip -c chr.img.zip > chr.img && \ | |
mount -o loop,offset=512 chr.img /mnt && \ | |
ADDRESS=`ip addr show ens18 | grep global | cut -d ' ' -f 6 | head -n 1` && \ | |
GATEWAY=`ip route list | grep default | cut -d ' ' -f 3` && \ | |
echo "/ip address add address=$ADDRESS interface=[/interface ethernet find where name=ether1] | |
/ip route add gateway=$GATEWAY | |
/ip service disable telnet | |
/user set 0 name=root password=xxxxxx" |
NewerOlder